package cc.rengu.redp.bizimpl.upmp.service.impl;

import cc.rengu.redp.bizimpl.upmp.domain.WechatMchntInfo;
import cc.rengu.redp.bizimpl.upmp.dao.WechatMchntInfoMapper;
import cc.rengu.redp.bizimpl.upmp.service.IWechatMchntInfoService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @author 刘玉亮.LL
 */
@Service
public class WechatMchntInfoServiceImpl extends ServiceImpl<WechatMchntInfoMapper, WechatMchntInfo> implements IWechatMchntInfoService {


    @Override
    public WechatMchntInfo getBWechatMchntInfoByMchntNo(String mchntNo,String instId) {
        LambdaQueryWrapper<WechatMchntInfo> wrapper= new LambdaQueryWrapper<>();
        wrapper.eq(WechatMchntInfo::getMchntNo,mchntNo);
        wrapper.eq(WechatMchntInfo::getInstId,instId);
        return this.getOne(wrapper);
    }
}
